package com.future.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.future.allUtils.enums.QuestionType;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("questionnaire")
@Accessors(chain = true)
public class Questionnaire {
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("问卷标题")
    private String title;
    @ApiModelProperty("问卷描述")
    private String description;
    @ApiModelProperty("问卷创建者id")
    private Long creatorId;
    @ApiModelProperty("创建者角色")
    private String creatorRole;
    @ApiModelProperty("问卷发布状态·0：未发布，1：已发布")
    @TableField("is_published")
    private Integer publishStatus;
    @ApiModelProperty("下发班级")
    private String className;
    @ApiModelProperty("问卷创建时间")
    @JsonFormat(pattern = " yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdAt;
    @ApiModelProperty("问卷更新时间")
    @JsonFormat(pattern = " yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updatedAt;
    @ApiModelProperty("问卷截止时间")
    @JsonFormat(pattern = " yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime expiredAt;
    @ApiModelProperty("问卷开始时间")
    @JsonFormat(pattern = " yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime startAt;
    @ApiModelProperty("总分")
    private Integer totalScore;
}
